Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} } \flushlayer[test3] \page %%% Wolfgang %%% \centerbox {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] \bTR \bTD \externalfigure[dummy] \eTD \bTD \rotate[rotation=90]{\externalfigure[dummy

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
gt; > > > > > \useMPlibrary [dum] > > > > > > \starttext > > > > > > \definelayer[test3] > > > > > > \setlayer[test3][x=2cm,y=15cm] > > > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Alan Braslau via ntg-context
text > > > > \definelayer[test3] > > > > \setlayer[test3][x=2cm,y=15cm] > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > > > {\externalfigure[dummy]}{} > > > > \rotate[rotation=90]{\externalfigure[dumm

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Wolfgang Schuster via ntg-context
]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3] \stoptext \useMPlibrary [dum] \showframe [text] [text] \setuplayout [tight] \starttext \centerbox    {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]     \bTR     \bTD     \externalfigure[dummy

[NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
, ] \useMPlibrary [dum] \starttext \definelayer[test3] \setlayer[test3][x=2cm,y=15cm] {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] {\externalfigure[dummy]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Pablo Rodriguez via ntg-context
should define a layer that covers the whole page, > since the following MWE is wrong (the layer always starts below the > first line): Hi Hraban, slightly modifying your MWE, I think I get what might fit your needs (see below). I never used \flushlayer and your sample shows that it doesn’t fit h

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Henning Hraban Ramm via ntg-context
Hi Willi, thank you, I wasn’t aware that \flushlayer works this way. This was also the problem in my real project. And I had the wrong layer mentioned in \setupbackgrounds from another test. Also, cropoffset was interfering in the real project, see my other mail. Hraban Am 16.04.22 um 22:27

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Willi Egger via ntg-context
> \setlayerframed[papier][ > preset=lefttop, > %x=-\measure{Bleed}, > %y=-\measure{Bleed}, > offset=overlay, > %frame=off, > width=\measure{MaxWidth}, > height=\measure{MaxHeight}, > ]{\externalfigure[dummy][ > width=\measure{MaxWidth},height=\measure{MaxHeight} > ]}

[NTG-context] placing (on) layers

2022-04-15 Thread Henning Hraban Ramm via ntg-context
=overlay, %frame=off, width=\measure{MaxWidth}, height=\measure{MaxHeight}, ]{\externalfigure[dummy][ width=\measure{MaxWidth},height=\measure{MaxHeight} ]} \flushlayer[papier] \stoptext ___ If your question

[NTG-context] flushlayer

2021-09-28 Thread Bruce Horrocks via ntg-context
Latest LMTX. I noticed the following \flushlayer behaviour and wondered if it was a bug or something I've misunderstood? \showframe \setuppapersize [A5][A5] \setuplayout[marking=on, location=middle] \definelayer[coverlayer] [width=\paperwidth, height=\paperheight] \setupbackgrounds [paper

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-25 Thread Rudolf Bahr
ox > {\setlayer > [TextBox] > [x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax, > y=\the\dimexpr(\textheight-\nextboxht)/3\relax] > {\flushnextbox}} > \hbox{\framed[width=300pt,align=normal]{\samplefile{ward}}} > > \flushlayer[TextBox] > > \s

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
the width is > \the\wd\scratchbox. > \unvbox\scratchbox > > \setlayerframed[LAY][x=0pt, y=20pt][width=300pt, align=flushleft]{\input > ward\relax} > \flushlayer[LAY] > > \stoptext > > Aditya Yes, that's essentially the same method I used, but I must have done a mi

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
{\framed[width=300pt,align=normal]{\samplefile{ward}}} \flushlayer[TextBox] \stoptext Now to your proposal, Wolfgang: \starttexdefinition NextboxDimension \starttabulate \NC Width \EQ \the\nextboxwd \NC\NR \NC Height \NC \the\nextboxht \NC\NR \stoptabulate \stoptexdefinition \startte

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
=on, width=300pt, align={right,}] % tolerant}] {\input ward } \flushlayer[LAY] \stoptext Now, it could have a favourable effect on designing a page if the height of a text of certain width could be calculated in advance, depending of the font. Is there a way? As I fear, TeX's means

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Aditya Mahajan
ed[LAY] >[x=0pt,y=20pt] >[frame=on, > width=300pt, > align={right,}] % tolerant}] >{\input ward } > \flushlayer[LAY] > \stoptext > > > Now, it could have a favourable effect on designing a page if the height of a text > of certain

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
\setlayerframed[LAY] > >[x=0pt,y=20pt] > >[frame=on, > > width=300pt, > > align={right,}] % tolerant}] > >{\input ward } > > \flushlayer[LAY] > > \stoptext > > > > > > Now, it could have a favourable effect on des

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Wolfgang Schuster
Rudolf Bahr schrieb am 24.03.2020 um 12:19: Hello dear All, the following MWE works best: \definelayer[LAY] \starttext \setlayerframed[LAY] [x=0pt,y=20pt] [frame=on, width=300pt, align={right,}] % tolerant}] {\input ward } \flushlayer[LAY] \stoptext Now, it could

[NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
Hello dear All, the following MWE works best: \definelayer[LAY] \starttext \setlayerframed[LAY] [x=0pt,y=20pt] [frame=on, width=300pt, align={right,}] % tolerant}] {\input ward } \flushlayer[LAY] \stoptext Now, it could have a favourable effect on designing a page

Re: [NTG-context] Tent style cards

2019-12-22 Thread Pavneet Arora
llonius.103][width=2.0in]} \switchtobodyfont[nameface] \setlayer[tblplacecard][x=10em,y=3.0em]% {\tfg\it\color[orangered]{Vidya}} \flushlayer[tblplacecard] \stopbuffer \starttext \setupcolors[state=start] %%% 1. Show the frame and layout information. \showfram

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
foregroundstyle={\definedfont[Serif at 82pt]}] >   {JOURNEY} > > \setlayerframed >   [LAY] >   [x=360pt, >    y=50pt] >   [frame=off, >    width=200pt, >    align={normal,tolerant}] >   {\input ward >    \blank[line] >    \externalfigure[hacker][he

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Wolfgang Schuster
[hacker][height=.4\textheight]} \flushlayer[LAY] \stopbuffer \getbuffer \page \setuplayer[LAY][hoffset=4cm,voffset=-2cm] \getbuffer \stoptext Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
[height=.4\textheight]% } } \flushlayer[LAY] \page \definelayer[LAY]% \setlayer[LAY][x=0pt,y=0pt]% {\externalfigure[mill][height=.4\textheight]} \setlayer[LAY][x=150pt,y=0pt]% {\externalfigure[hacker][height=.4\textheight]} \setlayer[LAY][x=0pt,y=200pt]% {\externalfigure[co

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-17 Thread Hans Hagen
On 12/17/2019 7:18 PM, Rudolf Bahr wrote: Hi Hans, assume we fixed between "\definelayer" and "\flushlayer" a whole ensemble of layers on a page. And by calculating per luacode we determined the leftmost and the rightmost edge of the ensemble and would now like to

[NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-17 Thread Rudolf Bahr
Hi Hans, assume we fixed between "\definelayer" and "\flushlayer" a whole ensemble of layers on a page. And by calculating per luacode we determined the leftmost and the rightmost edge of the ensemble and would now like to horizontally centre the ensemble. We don't know the r

[NTG-context] Textbackground inside Layer?

2019-12-05 Thread Jon Wong
\setupwhitespace[line] % A line's spacing between paragraphs. \starttext \definetextbackground[InfoText][ location=paragraph, frame=on] \definelayer[testlayer] \setlayer[testlayer][x=1cm,y=3cm]{% \startInfoText \stopInfoText } \flushlayer[testlayer] \stoptext Doesn’t work. Only works

Re: [NTG-context] Question to covers

2018-07-21 Thread Henning Hraban Ramm
command in > separate arguments. > > 4. I got rid of the backgrounds setup for the layer. A better solution here > is to create a page without margins which can be done with the "page" layout > where you flush the collected content of the layer with the \

Re: [NTG-context] Question to covers

2018-07-21 Thread Wolfgang Schuster
ackgrounds setup for the layer. A better solution here is to create a page without margins which can be done with the "page" layout where you flush the collected content of the layer with the \flushlayer command. 5. I set the texts for the isse number and title with the \setvari

Re: [NTG-context] Some questions about the letter module

2013-07-17 Thread Wolfgang Schuster
][corner={left,bottom},location={right,top}]{LB 1} \setlayer[test][corner={right,bottom},location={left,top}]{RB 1} \flushlayer[test] \setlayer[test][preset=lefttop]{LT 2} \setlayer[test][preset=righttop]{RT 2} \setlayer[test][preset=leftbottom]{LB 2} \setlayer[test][preset=rightbottom]{RB 2

Re: [NTG-context] Some questions about the letter module

2013-07-17 Thread Michael Ash
} \setlayer[test][corner={left,bottom},location={right,top}]{LB 1} \setlayer[test][corner={right,bottom},location={left,top}]{RB 1} \flushlayer[test] \setlayer[test][preset=lefttop]{LT 2} \setlayer[test][preset=righttop]{RT 2} \setlayer[test][preset=leftbottom]{LB 2} \setlayer[test

Re: [NTG-context] Vertically Aligning inmargin Text to Figure

2013-06-18 Thread Hans Hagen
:\rightorleftpageaction rl] [] [width=\marginwidth, align={lohi,middle}, foregroundstyle=\tx] {\floatuserdataparameter{text}} \flushlayer [extrafiguretextlayer:\rightorleftpageaction rl] \stopsetups \defineoverlay

[NTG-context] question about the layer.

2013-05-28 Thread Jeong Dal
Dear Wolfgang, I read your detailed explanation about the difference between overlay and layer. Here is your sample code using layer. \starttext \definelayer[test] \setlayer[test][x=3cm,y=6cm]{ONE} \setlayer[test][x=8cm,y=2cm]{TWO} \setlayer[test][x=2cm,y=9cm]{THREE} \flushlayer[test

Re: [NTG-context] question about the layer.

2013-05-28 Thread Wolfgang Schuster
=2cm]{TWO} \setlayer[test][x=2cm,y=9cm]{THREE} \flushlayer[test] \stoptext It shows ONE, TWO, and THREE in the same page. I'd like to show each word one by one when I click, so I tested the following code. \setupinteraction[state=start] \usemodule[pre-60] \starttext \definelayer

Re: [NTG-context] Layers, overlays

2013-01-24 Thread Sietse Brouwer
we are about to place: \composedlayer{x} is syntactic sugar for \flushlayer[x]. (Braces vs. brackets.) So it seems that what \tightlayer does is create a layer object exactly as large as its contents? What this is good for, and how it relates to overlays, I do not know. Good luck! --Sietse

Re: [NTG-context] Layer vs. overlay

2013-01-12 Thread Procházka Lukáš
centered in the frame but with layers you can put the content from each command at a certain horizontal and vertical position. In the following example I created a new layer and set three texts for it which are afterwards placed in the page which the \flushlayer command. \starttext \definelayer[test

Re: [NTG-context] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-12 Thread Procházka Lukáš
the content of each layer was always centered in the frame but with layers you can put the content from each command at a certain horizontal and vertical position. In the following example I created a new layer and set three texts for it which are afterwards placed in the page which the \flushlayer

Re: [NTG-context] Layer vs. overlay

2013-01-11 Thread Wolfgang Schuster
which the \flushlayer command. \starttext \definelayer[test] \setlayer[test][x=3cm,y=6cm]{ONE} \setlayer[test][x=8cm,y=2cm]{TWO} \setlayer[test][x=2cm,y=9cm]{THREE} \flushlayer[test] \stoptext When you put new some text after \flushlayer would be surprised because it would end put

Re: [NTG-context] Fw: A question about layers

2011-07-17 Thread Wolfgang Schuster
Am 16.07.2011 um 19:35 schrieb Marcin Borkowski: Anybody help, please...? Layers are objects which can be placed on any place of the page. The difference between \setupbackgrounds and \flushlayer can be seen in the example below. With \setupbackground the layer content is put on the requested

Re: [NTG-context] Fw: A question about layers

2011-07-17 Thread Willi Egger
. (And I have no idea what \flushlayer does in this conceptual framework.) So layers are actually kind of beneath ordinary page contents. Some of these commands (which ones?) should moreover be placed before \startext. OK, so where am I right and where am I wrong now? Best -- Marcin

Re: [NTG-context] Fw: A question about layers

2011-07-16 Thread Marcin Borkowski
what \flushlayer does in this conceptual framework.) So layers are actually kind of beneath ordinary page contents. Some of these commands (which ones?) should moreover be placed before \startext. OK, so where am I right and where am I wrong now? Best -- Marcin Borkowski

Re: [NTG-context] Fw: A question about layers

2011-07-16 Thread Willi Egger
- setups trickery if they are going to change from page to page), and they are actually put on the page by \setupbackgrounds. (And I have no idea what \flushlayer does in this conceptual framework.) So layers are actually kind of beneath ordinary page contents. Some of these commands (which ones

Re: [NTG-context] A question about layers

2011-07-14 Thread Hans Hagen
] \setlayer[title]{This is the title.} \stoptext (I'd also like to be able to anchor the title so that (105mm,20mm) are the coordinates of the center, not the lower-left corner etc. How to do that?) \flushlayer[title] etc (some styles in the distributions have examples) Hans

[NTG-context] Fw: A question about layers

2011-07-14 Thread Marcin Borkowski
that (105mm,20mm) are the coordinates of the center, not the lower-left corner etc. How to do that?) \flushlayer[title] Thanks too; but again, what does this do exactly? (Sorry for asking dumb questions, but I'd like to understand the underlying mechanism, not only learn how to use it...) -- Marcin

[NTG-context] Fw: A question about layers

2011-07-14 Thread Marcin Borkowski
, not the lower-left corner etc. How to do that?) \flushlayer[title] etc (some styles in the distributions have examples) I think that the general problem is that I have a wrong conceptual model of layers in ConTeXt. You know, when I hear the word layer, I have some ideas about how it should/could

[NTG-context] tooltip in a buffer (beta)

2011-01-28 Thread Peter Rolf
in front of text \flushlayer[foo] \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage

[NTG-context] expansion problem with \getbuffer again (mkiv)

2009-09-28 Thread Peter Rolf
must be set %\setupwhitespace[small]% \startSomePar Speichern des\endgraf aktuellen Designs \SomePar Löschen (!)\endgraf der aktuellen\endgraf Designvorlage \stopSomePar %\stoplocal \stopbuffer \definelayer[FOO] \setlayer[FOO]{\getbuffer[FOO]} \flushlayer[FOO] \stoptext

[NTG-context] overprint bug (mkiv)

2009-09-16 Thread Peter Rolf
=FOO,frame=off] {\startoverprint first one\stopoverprint}} \setlayer[BAR][x=50mm,y=45mm] {\framed[background=FOO,frame=off] {\startoverprint second one\stopoverprint}} \flushlayer[BAR] \stoptext ovp.pdf Description: Adobe PDF document

Re: [NTG-context] The ultimate (?) float problem

2009-05-14 Thread Piotr Kopszak
=figure] \setuppagenumbering[location={footer,right}] \usetypescript[palatino] \setupbodyfont[palatino,14pt] \starttext \startbuffer[zapf] \input zapf \stopbuffer \startbuffer[hawking] \input hawking \stopbuffer \flushlayer[figure] \startsetups figure \setlayerframed[figure][frame=off,x=25mm,y=43mm

Re: [NTG-context] No output for layers

2008-07-08 Thread Wolfgang Schuster
=middle]{Hello world!} \stoptext --- Any ideas? \flushlayer{mylayer} or \setupbackgrounds[text|page|...][background=mylayer] Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] No output for layers

2008-07-08 Thread Wolfgang Schuster
} \flushlayer[mylayer] \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

Re: [NTG-context] No output for layers

2008-07-08 Thread Uwe Koloska
, maybe it's just another way of calling the OTR -- see below) \flushlayer[mylayer] You have to invoke the OTR. OTR = Output Routine Without invoking the OTR nothing is generated. (but you can leave out \starttext \stoptext -- why?) You could use \startstandardmakeup \stopstandardmakeup

Re: [NTG-context] clipping bug [or the return of the long cat]

2008-06-09 Thread Peter Rolf
,height=1cm]% {Clipping some layer text}} %\flushlayer[stack] \setbox\scratchbox\hbox{The cat was too long to fit in this small sentence.} \framed[offset=overlay]{\clip[hoffset=0pt,voffset=0pt,width=110pt,height=15pt]{\box\scratchbox}} \stoptext the second clip uses the width value

Re: [NTG-context] clipping bug [or the return of the long cat]

2008-06-09 Thread Hans Hagen
\definelayer[stack] \setlayer[stack][x=0pt,y=0pt]{% \clip[hoffset=0pt,voffset=0pt,width=20cm,height=1cm]% {Clipping some layer text}} %\flushlayer[stack] \setbox\scratchbox\hbox{The cat was too long to fit in this small sentence.} \framed[offset=overlay]{\clip[hoffset=0pt,voffset=0pt,width

[NTG-context] clipping bug [or the return of the long cat]

2008-05-22 Thread Peter Rolf
hi, this time fully 'context live' approved, only with natural ingredients and even more tasty. yummy yum :D % engine=luatex \starttext \definelayer[stack] \setlayer[stack][x=0pt,y=0pt]{% \clip[hoffset=0pt,voffset=0pt,width=20cm,height=1cm]% {Clipping some layer text}} %\flushlayer[stack

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
# \FLOWchart # \flushcollector # \flushlayer # \flushXMLelement \followprofile{text}[text] \followprofileversion{text}[text][text] \followversion{text}[text] \footnote[reference]{text} \footnotetext[reference]{text} \forceblocks[names][names] # \forgetall # \FR \fraction{text}{text} \framed[settings]{text

Re: [NTG-context] mfun-004.tex \startuseMPgraphic

2005-12-19 Thread Hans Hagen
[mp]{\reuseMPgraphic{axis}} \setlayer[mp]{\useMPgraphic{one}} \ruledhbox{\flushlayer[mp]} \startuseMPgraphic{two} drawpoint 1.5cm,2.0cm ; \stopuseMPgraphic \definelayer[mp][preset=mp] \setlayer[mp]{\reuseMPgraphic{axis}} \setlayer[mp]{\useMPgraphic{two}} \ruledhbox{\flushlayer[mp]} \definelayer

Re: [NTG-context] Feature request

2005-07-26 Thread Hans Hagen
\startstandardmakeup \setlayer[text][location=grid,line=10]{test} \setlayer[text][location=grid,line=10,x=10cm]{test} \flushlayer[text] \stopstandardmakeup - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Feature request

2005-07-26 Thread luigi.scarso
\starttext \startstandardmakeup \setlayer[text][location=grid,line=10]{test} \setlayer[text][location=grid,line=10,x=10cm]{test} \flushlayer[text] \stopstandardmakeup %% add this line \stoptext % :-) luigi ___ ntg-context mailing list ntg-context

Re: [NTG-context] m-letter stationary

2005-02-24 Thread Rob Ermers
[achtergrond][x=0in,y=0in]{\externalfigure[stationary-1.pdf]} An option is to use the logo features but since layers are more fun i will probably turn that into an optional module some day (is anyone using it?) put this in cont-new.tex: \unprotect \unexpanded\def\flushlayer[#1]% {\doifelsevalue{\??ll#1

Re: [NTG-context] m-letter stationary

2005-02-23 Thread Hans Hagen
: \unprotect \unexpanded\def\flushlayer[#1]% {\doifelsevalue{\??ll#1\c!state}\v!next {\global\letvalue{\??ll#1\c!state}\v!start} % dangerous, stack-built-up {\doifelsevalue{\??ll#1\c!state}\v!continue {\global\letvalue{\??ll#1\c!state}\v!repeat} % dangerous, stack-built-up

Re: [NTG-context] Absolute positioning of graphics on the page

2004-09-07 Thread Hans Hagen
whenever you want, \flushlayer \composedlayer \tightlayer also, peek into core-box.tex: collectors and such) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] poster, howto for beginner

2004-07-06 Thread Hans Hagen
][width=6cm,align=normal]{\getbuffer[b]} \startstandardmakeup\flushlayer[page]\stopstandardmakeup \stoptext an other alternative is columnsets (see columns.pdf) - Hans Hagen | PRAGMA ADE